<?php
namespace catchAdmin\basics\model\search;

trait ExpenseTypeSearch
{
    public function searchCodeAttr($query, $value, $data)
    {
        return $query->where('code', $value);
    }

    public function searchNameAttr($query, $value, $data)
    {
        return $query->where('name', $value);
    }
    
}